#ifndef FILEUTILS_HPP_INCLUDED
#define FILEUTILS_HPP_INCLUDED

#include "typedef.h"

namespace FileUtils
{

ui_t stringToInteger(const str_t& pString);

void openBinaryFile(const str_t& filename, vuc_t& filebuffer);

bool checkPPMFileHeader(ui_t& width, ui_t& height, vuc_t& data, vuc_t& imagedata);

void writeBinaryFile(const str_t& filename, vuc_t& data);

void stringToUnsignedCharVector(const str_t& pInput, vuc_t& pOutput);

bool openPPMFile(const str_t& pFilename, ui_t& pWidth, ui_t& pHeight, vuc_t& pImageData);

}

#endif // FILEUTILS_HPP_INCLUDED
